package com.ruoyi.project.equipment.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 用户与设备关联对象 user_equipment
 *
 * @author ruoyi
 * @date 2020-07-10
 */
public class UserEquipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Long equipmentId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    public void setId(Long equipmentId)
    {
        this.equipmentId = equipmentId;
    }

    public Long getId()
    {
        return equipmentId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("equipmentId", getId())
                .append("userId", getUserId())
                .toString();
    }
}